package cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.buyrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


/**
 * 购买记录 Excel VO
 *
 * @author 沣东养老院管理员
 */
@Data
public class BuyRecordExcelVO {

    @ExcelProperty("编号")
    private Long id;

    @ExcelProperty("订单号")
    private String orderNumber;

    @ExcelProperty("商品id")
    private Long commodityId;

    @ExcelProperty("地区编号")
    private Long areaId;

    @ExcelProperty("地区名字")
    private String areaName;

    @ExcelProperty("收件人名称")
    private String name;

    @ExcelProperty("手机号")
    private String mobile;

    @ExcelProperty("收件详细地址")
    private String detailAddress;

    @ExcelProperty("老人姓名")
    private String oldmanName;

    @ExcelProperty("老人身份证")
    private String oldmanCard;

    @ExcelProperty(value = "状态 ", converter = DictConvert.class)
    @DictFormat("buy_record_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Long status;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @ExcelProperty( "开始时间")
    private LocalDateTime startTime;

    @ExcelProperty( "结束时间")
    private LocalDateTime endTime;

}
